﻿@using MiniWeb.Core.Dtos
@using MiniWeb.Core.Entities
@using WFramework.Common
@using WFramework.MvcPager
@{
    Layout = "~/Views/Shared/_BaseLayout.cshtml";
   
    var classlist = ViewData["classlist"] as List<ProductsClass>;

    var typeinfo = ViewData["typeinfo"] as ProductsType;
    var classinfo = ViewData["classinfo"] as ProductsClass;
    int i = 1;
}
@model PagedList<ProductsInfoDto>
<div class="lump-top area">
    <div class="q-nav">
        全部结果 &gt; <a href="/goods/list">所有商品</a>
        @if (typeinfo!=null)
        {
            <text>&gt;<a href="/goods/list?rid=@typeinfo.ID">@typeinfo.TypeName</a></text>
        }
        @if(classinfo !=null)
        {
           <text> &gt;<a href="/goods/list?cid=@classinfo.ID">@classinfo.ClassName</a></text>
            }
        </div>
    <div class="q-search">
    </div>
</div>
<div class="sub-box">
    <div class="area">
        <div class="lump-content clear">
         @Html.Action("LeftClum","MainLayout")
            <!--left-->
            <div class="right-column">
                <div class="bd-1 mgbt-10">
                    <div class="m-title s-tt-2">
                        <h2>
                            西藏特产<b>商品筛选</b></h2>
                        <i></i>
                    </div>
                    <ul class="m-screening">
                        <li>
                            <h3>
                                商品：</h3>
                            <div class="m-licon">
                                <dl>
                                    <dd class="current">
                                        <a href="/goods/0/0.aspx">全部</a></dd>
                                    @foreach (var item in classlist)
                                    {
                                        <dd>
                                            <a href="/goods/93/0.aspx">@item.ClassName</a></dd>
                                    }
                                </dl>
                            </div>
                            <div class="m-open" style="display: block;">
                                <p class="op">
                                    展开 +</p>
                                <p class="cl">
                                    收起 -</p>
                            </div>
                        </li>
                        <li>
                            <h3>
                                价格：</h3>
                            <div class="m-licon">
                                <dl>
                                    <dd class="current">
                                        <a href="/goods/5/0.aspx">全部</a></dd>
                                    <dd>
                                        <a href="/goods/5/15.aspx">0-99</a></dd>
                                    <dd>
                                        <a href="/goods/5/16.aspx">100-199</a></dd>
                                    <dd>
                                        <a href="/goods/5/17.aspx">200-299</a></dd>
                                    <dd>
                                        <a href="/goods/5/17.aspx">大于300</a></dd>
                                    <!--<dt><input name="" type="text"> -<input name="" type="text"><input class="btn" name="" type="button" value="确定"></dt>-->
                                </dl>
                            </div>
                            <div class="m-open" style="display: none;">
                                <p class="op">
                                    展开 +</p>
                                <p class="cl">
                                    收起 -</p>
                            </div>
                        </li>
                    </ul>
                    <!--m-screening-->
                </div>
                <!--bd-1-->
                <div class="bd-1 red-line mgbt-10">
                    <ul class="sub-product j-li-hover clear">
                        <!--取得一个DataTable-->
                        <!--取得分页页码列表-->
                        @foreach (var item in Model)
                        {
                            <li class="">
                                <div class="u-box hover">
                                    <a class="u-img" href="/goods/show-88.aspx">
                                        <img src="@item.ProductImg" alt=""></a> <a class="u-name" href="/goods/show-88.aspx">@item.ProductName</a>
                                    <div class="m-pri">
                                        价格：<b>￥@item.Price</b>
                                        <p class="add">
                                            <i>直降</i>@if (item.CreateDate.AddDays(5) > DateTime.Now)
                                                     {<i> </i>
                                                <text>新品</text>
                                                     }@if (item.SellNum > 10)
                                                      {<i> </i>
                                                          <text>热卖</text>
                                                      }
                                        </p>
                                    </div>
                                    <div class="u-pri2">
                                        ￥@item.CPrice</div>
                                    @* <p class="m-star" title="4"><!--这里的title就是好评星星的百分比,20就是20%的意思-->
                                <span class="star-white clear">
                                    <span class="star-yellow" style="width: 3.04px;"></span>
                                </span>
                                <a>(已有0人评价)</a>
                            </p>*@
                                </div>
                            </li>
                        }
                    </ul>
                    <div class="m-page m-page-rt">
                        @*   <a class="first pageprv z-dis">«上一页</a><a class="z-crt">1</a><a class="last pagenxt" href="/goods/5/0/2.aspx">2</a><a class="first pageprv" href="/goods/5/0/2.aspx">下一页»</a>*@
                        <div style="padding: 10px;">
                            @Html.Pager(Model)
                        </div>
                    </div>
                    <!--5-->
                </div>
                <!--bd-1-->
            </div>
            <!--right-->
        </div>
        <!--lump-content-->
        <link href="/templates/speciality/css/pro.css" rel="stylesheet" type="text/css">
        <script type="text/javascript" src="/templates/speciality/js/global-ko.js"></script>
        @Html.Action("SeeHistoryAndLove", "MainLayout")
    </div>
</div>
